Learn and practice Aptitude questions and answers with explanation for interview, competitive exam (Pariksha Corner )

Compiler Design+UnSolved



Friday, January 24, 2020

Generation of intermediate code based on an abstract machine

Generation of intermediate code based on an abstract machine model is useful in compilers because
Ait makes the implementation of lexical analysis and syntax analysis easier
Bsyntax directed translations can be written for intermediate code generation
Cit enhances the portability of the front end of the compiler
Dit is not possible to directly generate code for real machines.
View Answer

In an absolute loading scheme, the assembler, in addition to

In an absolute loading scheme, the assembler, in addition to its normal functions, should also perform
Aallocation
Breallocation
Clinking
Dloading
View Answer

Thursday, January 23, 2020

Match the implementations of Table X with the addressing

Match the implementations of Table X with the addressing modes of Table Y :
Aa->III b->I c->II
Ba->II b->I c->III
Ca->III b->II c->I
Da->II b->III c->I
View Answer

Wednesday, January 22, 2020

Look at the following grammar

Look at the following grammar :

It generates strings of terminals that have
Aequal number of a`s and b`s
Bequal number of a`s and b`s
Ceven number of a`s and even number of b`s
Dodd number of a`s and even number of b`s.
View Answer

What does the machine shown in the figure do

What does the machine shown in the figure do ?
AComplements a given bit pattern
BFinds 2`s complement of a given pattern
CIncrements the given pattern by 1
DChanges the sign bit.
View Answer

Categories